package com.sl.water.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sl.water.dao.PlanEAzlxDao;
import com.sl.water.entity.PlanEZylx;
import com.sl.water.service.PlanEAzlxService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: duan
 * @time: 2025-06-30 14:29
 */
@Service
@RequiredArgsConstructor
public class PlanEAzlxServiceImpl extends ServiceImpl<PlanEAzlxDao, PlanEZylx> implements PlanEAzlxService {
    @Override
    public String getGeoJson(String name,Integer kind) {
        LambdaQueryWrapper<PlanEZylx> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(PlanEZylx::getName, name);
        lambdaQueryWrapper.eq(PlanEZylx::getKind , kind);
        PlanEZylx bean = this.getOne(lambdaQueryWrapper);
        return bean.getCoords();
    }
}
